Skip to content

Instantly share code, notes, and snippets.

@Ajinkya-Sonawane
Ajinkya-Sonawane / cbt.cpp
Created March 25, 2017 18:53
Complete Binary Tree Implementation using C++.
/*
C++ Program to create a Complete Binary Tree.
-Ajinkya Sonawane [AJ-CODE-7]
In a complete binary tree every level, except possibly the last, is completely filled,
and all nodes in the last level are as far left as possible.
It can have between 1 and 2h nodes at the last level h.
An alternative definition is a perfect tree whose rightmost leaves (perhaps all) have been removed.
Some authors use the term complete to refer instead to a perfect binary tree as defined above,
@benloong
benloong / UIBorder.cs
Created January 6, 2017 02:13
Unity RectTransform Border
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIBorder : MaskableGraphic {
[SerializeField]
float cornerRadius = 5;
[SerializeField]
@pablotolentino
pablotolentino / Visual Studio 2022 Product Key
Created November 20, 2021 20:41
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2024 06:50
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 10, 2024 06:50
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@tanaikech
tanaikech / submit.md
Last active May 10, 2024 06:46
Sample Scripts for Requesting to Web Apps by Various Languages
@rohitfarmer
rohitfarmer / gromacs-4-commands.txt
Created August 2, 2017 14:16
Gromacs 4-* commands
Gromacs local install
---------------------
FFTW3 compile for older gromacs version
---------------------------------------
./configure --enable-threads --enable-float --with-pic
./configure --prefix=/home/rohit/bin/gromacs-4.5.6/
For Newer versions
-----------------
@MattPD
MattPD / cpp.std.coroutines.draft.md
Last active May 10, 2024 06:45
C++ links: Coroutines (WIP draft)
@jay7134
jay7134 / cf7_convertkit_integration.php
Last active May 10, 2024 06:42
How to integrate Contact Form 7 with ConvertKit without using plugin
// Contact Form 7 & Convertkit integration
add_action( 'wpcf7_mail_sent', 'action_subscribe_to_convertkit', 10, 2 );
function action_subscribe_to_convertkit( $contact_form ) {
$title = $contact_form->title;
$submission = WPCF7_Submission::get_instance();
if ( $submission ) {
$posted_data = $submission->get_posted_data();
}
$first_name = $posted_data["your-name"];
$email = $posted_data["your-email"];